package com.googlecode.springgameengine.resource;

/**
 *
 * @author maciejsz
 */
public abstract class NativeResource implements Resource {

	@Override
	protected void finalize() throws Throwable {
		try {
			if (isLoaded()) {
				unload();
			}
		} finally {
			super.finalize();
		}
	}
}
